1353. Maximum Number of Events That Can Be Attended
1353. Maximum Number of Events That Can Be Attended
Description


Solution
Use priority_queue to find the closed DDL’s event and handle it in the day.
There is are tricky programming point that we can directly iterate the whole [earliest start time, latest finish time] to find each day’s best strategy or we can also iterate every sorted event.
Code
1 | class Solution { |

All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.

